package com.group02.community.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group02.community.entity.user.SysUserPost;
import com.group02.community.mapper.UserPostMapper;
import com.group02.community.service.IUserPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserPostServiceImpl extends ServiceImpl<UserPostMapper, SysUserPost> implements IUserPostService {
    @Autowired
    UserPostMapper userPostMapper;

    @Override
    public void saveUserPostByUserId(long userId, List<Long> postIds) {
        userPostMapper.insertUserPost(userId,postIds);
    }
}
